package lesson.duotai;

public class Test {
    public static void main(String[] args) {
        Student student = new Student();
        student.setName("张三");
        student.setAge("23");

        Teacher teacher = new Teacher();
        teacher.setName("王玉锁");
        teacher.setAge("40");

        Administer administer = new Administer();
        administer.setName("管理员");
        administer.setAge("60");

        register(student);
        register(teacher);
        register(administer);
    }

    public static void register(Person p){
        p.show();
    }

}
